ROOT_DIR = $(CURDIR)
BIN_DIR = $(ROOT_DIR)/bin
APP_NAME=upload-srv

build:
	go build -o $(BIN_DIR)/$(APP_NAME) -ldflags "-w -s" .

build-linux:
	GOOS=linux GOARCH=amd64 go build -o $(BIN_DIR)/$(APP_NAME)-l -ldflags "-w -s" . && upx -q $(BIN_DIR)/$(APP_NAME)-l
